home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_ghostscript.idb / usr / freeware / catman / u_man / cat1 / gs.Z / gs
Encoding:
Text File  |  1998-05-21  |  15.4 KB  |  397 lines

  1.  
  2.  
  3.  
  4.      GGGGSSSS((((1111))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22228888 JJJJuuuullllyyyy 1111999999994444))))         GGGGSSSS((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       gs - Aladdin Ghostscript version 3.0 interpreter/previewer
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.       ggggssss [ _o_p_t_i_o_n_s ] [ _f_i_l_e_s ] ...
  13.  
  14.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.       Ghostscript is a programming language    similar    to Adobe
  16.       Systems' PostScript (tm) language, which is in turn similar
  17.       to Forth.  _G_s    reads _f_i_l_e_s in sequence    and executes them as
  18.       Ghostscript programs.     After doing this, it reads further
  19.       input    from the standard input    stream (normally the
  20.       keyboard).  Each line    is interpreted separately.  To exit
  21.       from the interpreter,    enter the `quit' command.  The
  22.       interpreter also exits gracefully if it encounters end-of-
  23.       file.     Typing    the interrupt character    (e.g. Control-C) is
  24.       also safe.
  25.  
  26.       The interpreter recognizes several switches described    below,
  27.       which    may appear anywhere in the command line    and apply to
  28.       all files thereafter.
  29.  
  30.       You can get a    help message by    invoking Ghostscript with the
  31.       ----hhhh or    ----???? option.  This message also lists the    available
  32.       devices.
  33.  
  34.       Ghostscript may be built with    multiple output    devices.
  35.       Ghostscript normally opens the first one and directs output
  36.       to it.  To use device    xyz as the initial output device,
  37.       include the switch
  38.            -sDEVICE=xyz
  39.       in the command line.    Note that this switch must precede the
  40.       first    .ps file, and only its first invocation    has any
  41.       effect.  For example,    for printer output in a    normal
  42.       configuration    that includes an Epson printer driver, you
  43.       might    use the    shell command
  44.            gs -sDEVICE=epson myfile.ps
  45.       instead of just
  46.            gs myfile.ps
  47.       Alternatively, you can type
  48.            (epson) selectdevice
  49.            (myfile.ps) run
  50.       All output then goes to the printer instead of the display
  51.       until    further    notice.     You can switch    devices    at any time by
  52.       using    the selectdevice procedure, e.g.,
  53.            (vga) selectdevice
  54.       or
  55.            (epson) selectdevice
  56.       As yet a third alternative, you can define an    environment
  57.       variable GS_DEVICE as    the desired default device name.  The
  58.       order    of precedence for these    alternatives, highest to
  59.       lowest, is:
  60.  
  61.  
  62.  
  63.      Page 1                         (printed 5/12/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      GGGGSSSS((((1111))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22228888 JJJJuuuullllyyyy 1111999999994444))))         GGGGSSSS((((1111))))
  71.  
  72.  
  73.  
  74.            selectdevice
  75.            (command    line)
  76.            GS_DEVICE
  77.            (first device in    build list)
  78.  
  79.       To select the    density    on a printer, use
  80.            gs -sDEVICE=<device> -r<xres>x<yres>
  81.       For example, on a 9-pin Epson-compatible printer, you    can
  82.       get the lowest-density (fastest) mode    with
  83.            gs -sDEVICE=epson -r60x72
  84.       and the highest-density mode with
  85.            gs -sDEVICE=epson -r240x72.
  86.  
  87.       If you select    a printer as the output    device,    Ghostscript
  88.       also allows you to control where the device sends its
  89.       output.  Normally, output goes directly to a scratch file on
  90.       Unix systems.     To send the output to a series    of files
  91.       foo1.xyz, foo2.xyz, ..., use the switch
  92.            -sOutputFile=foo%d.xyz
  93.       The %d is a printf format specification; you can use other
  94.       formats like %02d.  Each file    will receive one page of
  95.       output.  Alternatively, to send the output to    a single file
  96.       foo.xyz, with    all the    pages concatenated, use    the switch
  97.            -sOutputFile=foo.xyz
  98.  
  99.       On Unix systems, you can send    the output directly to a pipe.
  100.       For example, to pipe the output to the command `lpr' (which,
  101.       on many Unix systems,    is the command that spools output for
  102.       a printer), use the switch
  103.            -sOutputFile=\|lpr
  104.       You can also send output to stdout for piping    with the
  105.       switch
  106.            -sOutputFile=-
  107.       In this case you must    also use the -q    switch,    to prevent
  108.       Ghostscript from writing messages to stdout.
  109.  
  110.       To find out what devices are available, type
  111.            devicenames ==
  112.       after    starting up Ghostscript.  Alternatively, you can use
  113.       the -h or -? switch in the command line; the help message
  114.       also lists the available devices.
  115.  
  116.       To select a different    paper size, use    the command line
  117.       switch
  118.           -sPAPERSIZE=a_known_paper_size
  119.       e.g.,
  120.           -sPAPERSIZE=a4
  121.       or
  122.           -sPAPERSIZE=legal
  123.  
  124.      IIIINNNNIIIITTTTIIIIAAAALLLLIIIIZZZZAAAATTTTIIIIOOOONNNN FFFFIIIILLLLEEEESSSS
  125.       When looking for the initialization files (gs_*.ps), the
  126.  
  127.  
  128.  
  129.      Page 2                         (printed 5/12/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      GGGGSSSS((((1111))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22228888 JJJJuuuullllyyyy 1111999999994444))))         GGGGSSSS((((1111))))
  137.  
  138.  
  139.  
  140.       files    related    to fonts, or the file for the `run' operator,
  141.       Ghostscript first tries opening the file with    the name as
  142.       given    (i.e., using the current working directory if none is
  143.       specified).  If this fails, and the file name    doesn't
  144.       specify an explicit directory    or drive (i.e.,    doesn't    begin
  145.       with `/' on Unix systems), Ghostscript will try directories
  146.       in the following order:
  147.  
  148.       1.   The directory/ies specified by the -I switch(es)    in the
  149.            command line (see below), if any;
  150.  
  151.       2.   The directory/ies specified by the GS_LIB environment
  152.            variable, if any;
  153.  
  154.       3.   The directory/ies specified by the GS_LIB_DEFAULT macro
  155.            in the Ghostscript makefile (which has been set to
  156.            "/usr/local/lib/ghostscript:/usr/local/lib/ghostscript/fonts").
  157.  
  158.       Each of these    (GS_LIB_DEFAULT, GS_LIB, and -I    parameter) may
  159.       be either a single directory,    or a list of directories
  160.       separated by a `:'.
  161.  
  162.      XXXX RRRREEEESSSSOOOOUUUURRRRCCCCEEEESSSS
  163.       Ghostscript looks for    the following resources    under the
  164.       program name `Ghostscript':
  165.  
  166.       bbbboooorrrrddddeeeerrrrWWWWiiiiddddtttthhhh
  167.            The border width    in pixels (default = 1).
  168.  
  169.       bbbboooorrrrddddeeeerrrrCCCCoooolllloooorrrr
  170.            The name    of the border color (default = black).
  171.  
  172.       ggggeeeeoooommmmeeeettttrrrryyyy
  173.            The window size and placement, WxH+X+Y (default is
  174.            NULL).
  175.  
  176.       xxxxRRRReeeessssoooolllluuuuttttiiiioooonnnn
  177.            The number of x pixels per inch (default    is computed
  178.            from WidthOfScreen and WidthMMOfScreen).
  179.  
  180.       yyyyRRRReeeessssoooolllluuuuttttiiiioooonnnn
  181.            The number of y pixels per inch (default    is computed
  182.            from HeightOfScreen and HeightMMOfScreen).
  183.  
  184.       uuuusssseeeeBBBBaaaacccckkkkiiiinnnnggggPPPPiiiixxxxmmmmaaaapppp
  185.            Determines whether backing store    is to be used for
  186.            saving display window (default =    true).
  187.  
  188.       See the file `use.doc' for a more complete list of
  189.       resources.
  190.  
  191.       To set these resources, put them in a    file (such as
  192.  
  193.  
  194.  
  195.      Page 3                         (printed 5/12/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      GGGGSSSS((((1111))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22228888 JJJJuuuullllyyyy 1111999999994444))))         GGGGSSSS((((1111))))
  203.  
  204.  
  205.  
  206.       ~/.Xresources) in the    following form:
  207.  
  208.            Ghostscript*geometry:    612x792-0+0
  209.            Ghostscript*xResolution:    72
  210.            Ghostscript*yResolution:    72
  211.  
  212.       Then load the    defaults into the X server:
  213.  
  214.            % xrdb -merge ~/.Xresources
  215.  
  216.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  217.       -------- _f_i_l_e_n_a_m_e _a_r_g_1 ...
  218.            Takes the next argument as a file name as usual,    but
  219.            takes all remaining arguments (even if they have    the
  220.            syntactic form of switches) and defines the name
  221.            ARGUMENTS in userdict (not systemdict) as an array of
  222.            those strings, _b_e_f_o_r_e running the file.    When
  223.            Ghostscript finishes executing the file,    it exits back
  224.            to the shell.
  225.  
  226.       ----DDDD_n_a_m_e====_t_o_k_e_n
  227.       ----dddd_n_a_m_e====_t_o_k_e_n
  228.            Define a    name in    systemdict with    the given definition.
  229.            The token must be exactly one token (as defined by the
  230.            `token' operator) and must not contain any whitespace.
  231.  
  232.       ----DDDD_n_a_m_e
  233.       ----dddd_n_a_m_e
  234.            Define a    name in    systemdict with    value=null.
  235.  
  236.       ----SSSS_n_a_m_e====_s_t_r_i_n_g
  237.       ----ssss_n_a_m_e====_s_t_r_i_n_g
  238.            Define a    name in    systemdict with    a given    string as
  239.            value.  This is different from -d.  For example,
  240.            -dname=35 is equivalent to the program fragment
  241.                   /name 35 def
  242.            whereas -s name=35 is equivalent    to
  243.                   /name (35) def
  244.  
  245.       ----qqqq   Quiet startup - suppress    normal startup messages, and
  246.            also do the equivalent of -dQUIET.
  247.  
  248.       ----gggg_n_u_m_b_e_r_1xxxx_n_u_m_b_e_r_2
  249.            Equivalent to ----ddddDDDDEEEEVVVVIIIICCCCEEEEWWWWIIIIDDDDTTTTHHHH====_n_u_m_b_e_r_1 and
  250.            ----ddddDDDDEEEEVVVVIIIICCCCEEEEHHHHEEEEIIIIGGGGHHHHTTTT====_n_u_m_b_e_r_2....    This is    for the    benefit    of
  251.            devices (such as    X11 windows) that require (or allow)
  252.            width and height    to be specified.
  253.  
  254.       ----rrrr_n_u_m_b_e_r
  255.       ----rrrr_n_u_m_b_e_r_1xxxx_n_u_m_b_e_r_2
  256.            Equivalent to ----ddddDDDDEEEEVVVVIIIICCCCEEEEXXXXRRRREEEESSSSOOOOLLLLUUUUTTTTIIIIOOOONNNN====_n_u_m_b_e_r_1 and
  257.            ----ddddDDDDEEEEVVVVIIIICCCCEEEEYYYYRRRREEEESSSSOOOOLLLLUUUUTTTTIIIIOOOONNNN====_n_u_m_b_e_r_2....  This is for the benefit
  258.  
  259.  
  260.  
  261.      Page 4                         (printed 5/12/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      GGGGSSSS((((1111))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22228888 JJJJuuuullllyyyy 1111999999994444))))         GGGGSSSS((((1111))))
  269.  
  270.  
  271.  
  272.            of devices (such    as printers) that support multiple X
  273.            and Y resolutions.  (If only one    number is given, it is
  274.            used for    both X and Y resolutions.)
  275.  
  276.       ----IIII_d_i_r_e_c_t_o_r_i_e_s
  277.            Adds the    designated list    of directories at the head of
  278.            the search path for library files.
  279.  
  280.       ----    This is not really a switch.  It    indicates to
  281.            Ghostscript that    the standard input is coming from a
  282.            file or a pipe.    Ghostscript reads from stdin until
  283.            reaching    end-of-file, executing it like any other file,
  284.            and then    continues processing the command line.    At the
  285.            end of the command line,    Ghostscript exits rather than
  286.            going into its interactive mode.
  287.  
  288.       Note that gs_init.ps makes systemdict    read-only, so the
  289.       values of names defined with -D/d/S/s    cannot be changed
  290.       (although, of    course,    they can be superseded by definitions
  291.       in userdict or other dictionaries.)
  292.  
  293.      SSSSPPPPEEEECCCCIIIIAAAALLLL NNNNAAAAMMMMEEEESSSS
  294.       ----ddddDDDDIIIISSSSKKKKFFFFOOOONNNNTTTTSSSS
  295.            Causes individual character outlines to be loaded from
  296.            the disk    the first time they are    encountered.
  297.            (Normally Ghostscript loads all the character outlines
  298.            when it loads a font.)  This may    allow loading more
  299.            fonts into RAM, at the expense of slower    rendering.
  300.  
  301.       ----ddddNNNNOOOOCCCCAAAACCCCHHHHEEEE
  302.            Disables    character caching.  Only useful    for debugging.
  303.  
  304.       ----ddddNNNNOOOOBBBBIIIINNNNDDDD
  305.            Disables    the `bind' operator.  Only useful for
  306.            debugging.
  307.  
  308.       ----ddddNNNNOOOODDDDIIIISSSSPPPPLLLLAAAAYYYY
  309.            Suppresses the normal initialization of the output
  310.            device.    This may be useful when    debugging.
  311.  
  312.       ----ddddNNNNOOOOPPPPAAAAUUUUSSSSEEEE
  313.            Disables    the prompt and pause at    the end    of each    page.
  314.            This may    be desirable for applications where another
  315.            program is `driving' Ghostscript.
  316.  
  317.       ----ddddNNNNOOOOPPPPLLLLAAAATTTTFFFFOOOONNNNTTTTSSSS
  318.            Disables    the use    of fonts supplied by the underlying
  319.            platform    (e.g. X    Windows).  This    may be needed if the
  320.            platform    fonts look undesirably different from the
  321.            scalable    fonts.
  322.  
  323.       ----ddddSSSSAAAAFFFFEEEERRRR
  324.  
  325.  
  326.  
  327.      Page 5                         (printed 5/12/98)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      GGGGSSSS((((1111))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22228888 JJJJuuuullllyyyy 1111999999994444))))         GGGGSSSS((((1111))))
  335.  
  336.  
  337.  
  338.            Disables    the deletefile and renamefile operators, and
  339.            the ability to open files in any    mode other than    read-
  340.            only.  This may be desirable for    spoolers or other
  341.            sensitive environments.
  342.  
  343.       ----ddddWWWWRRRRIIIITTTTEEEESSSSYYYYSSSSTTTTEEEEMMMMDDDDIIIICCCCTTTT
  344.            Leaves systemdict writable.  This is necessary when
  345.            running special utility programs    such as    font2c and
  346.            pcharstr, which must bypass normal PostScript access
  347.            protection.
  348.  
  349.       ----ssssDDDDEEEEVVVVIIIICCCCEEEE====_d_e_v_i_c_e
  350.            Selects an alternate initial output device, as
  351.            described above.
  352.  
  353.       ----ssssOOOOuuuuttttppppuuuuttttFFFFiiiilllleeee====_f_i_l_e_n_a_m_e
  354.            Selects an alternate output file    (or pipe) for the
  355.            initial output device, as described above.
  356.  
  357.      FFFFIIIILLLLEEEESSSS
  358.       ////uuuussssrrrr////llllooooccccaaaallll////lllliiiibbbb////gggghhhhoooossssttttssssccccrrrriiiipppptttt////****
  359.            Startup-files, utilities, and basic font    definitions.
  360.  
  361.       ////uuuussssrrrr////llllooooccccaaaallll////lllliiiibbbb////gggghhhhoooossssttttssssccccrrrriiiipppptttt////ffffoooonnnnttttssss////****
  362.            Additional font definitions.
  363.  
  364.       ////uuuussssrrrr////llllooooccccaaaallll////lllliiiibbbb////gggghhhhoooossssttttssssccccrrrriiiipppptttt////eeeexxxxaaaammmmpppplllleeeessss////****
  365.            Demo Ghostscript    files.
  366.  
  367.       ////uuuussssrrrr////llllooooccccaaaallll////lllliiiibbbb////ddddoooocccc////gggghhhhoooossssttttssssccccrrrriiiipppptttt////ddddoooocccc////****
  368.            Assorted    document files.
  369.  
  370.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  371.       The various Ghostscript document files (above).
  372.  
  373.      BBBBUUUUGGGGSSSS
  374.       See the network news group `comp.lang.postscript'.
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.      Page 6                         (printed 5/12/98)
  394.  
  395.  
  396.  
  397.